home *** CD-ROM | disk | FTP | other *** search
- Path: lynx.unm.edu!news
- From: rfalanga@numex.unm.edu (Rod Falanga)
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.tools
- Subject: Simple "Hello, World" program doesn't compile in VC++ 1.51.
- Date: Fri, 09 Feb 1996 23:19:58 GMT
- Organization: University of New Mexico, Albuquerque
- Message-ID: <4fgkrq$5mc@lynx.unm.edu>
- NNTP-Posting-Host: curry.unm.edu
- X-Newsreader: Forte Free Agent 1.0.82
-
- A co-worker of mine is taking a C++ class. She's asked to use my PC,
- where I've got Visual C++ 1.51 loaded (I've got Windows for Workgroups
- on this PC). Her class will not be using Windows or anything like
- that at all. She's got a simple "Hello, World" application, which
- will not compile. The code looks like this:
-
- #include <iostream.h>
-
- int
- main()
- {
- cout << "Hello World" << endl;
- return 0;
- }
-
-
- As you can see, straight forward.
-
- I've set up this application in VC++ 1.51 to be a MS-DOS program,
- which does NOT use MFC. When I've compiled it, I've gotten over 100
- error messages, things like "'class' is followed by 'streambuf'"
- (C2282), "expected '(' to follow 'inline'" (C2054), etc. And all of
- these complaints come from VC++'s IOS.H file?!
-
- What's wrong? What do I do about it?
-
- Rod
-
- Rod Falanga | (voice) 505-841-2511 (FAX) 505-841-2543
- Scientific Laboratory Division | rfalanga@numex.unm.edu
- P.O. Box 4700 |
- Albuquerque, NM 87196-4700 | The opinions expressed are mine alone.
-
-